package com.ljf.framework.Async;

import java.util.concurrent.CompletableFuture;

/**
 * 说明：异步执行结果，扩展需要添加对应的构造方法
 *
 * @Auther: lijinfeng
 * @Date: 2024/8/2
 */
public class AsyncResult<T>{

    private CompletableFuture<T> completableFuture;

    public AsyncResult(CompletableFuture<T> completableFuture) {
        this.completableFuture = completableFuture;
    }

    public T join(){
        return completableFuture.join();
    }
}
